package com.ruoyi.screensave.mapper;


import com.ruoyi.screensave.domain.ScreenSaveTime;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface ScreenSaveMapper {


    @Select("Select * from screen_time")
    public List<ScreenSaveTime> getScreenSaveTime();


    @Insert("Insert into screen_time values(1,#{min},#{showed})")
    public Integer setScreenSaveTime(@Param("min") Integer min,@Param("showed") Boolean showed);

    @Update("Update screen_time SET minute=#{min} , showed=#{showed} where id=1")
    public Integer updateScreenSaveTime(@Param("min") Integer min ,@Param("showed") Boolean showed);

}
